package com.ruoyi.electronicFence.service.Impl;

import java.time.LocalDateTime;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.electronicFence.mapper.TDeviceInfoModificationHistoryMapper;
import com.ruoyi.electronicFence.domain.TDeviceInfoModificationHistory;
import com.ruoyi.electronicFence.service.ITDeviceInfoModificationHistoryService;

/**
 * 设备状态Service业务层处理
 *
 * @author ljw
 * @date 2024-11-05
 */
@Service
public class TDeviceInfoModificationHistoryServiceImpl implements ITDeviceInfoModificationHistoryService
{
    @Autowired
    private TDeviceInfoModificationHistoryMapper tDeviceInfoModificationHistoryMapper;

    /**
     * 查询设备状态
     *
     * @param id 设备状态主键
     * @return 设备状态
     */
    @Override
    public TDeviceInfoModificationHistory selectTDeviceInfoModificationHistoryById(Integer id)
    {
        return tDeviceInfoModificationHistoryMapper.selectTDeviceInfoModificationHistoryById(id);
    }

    /**
     * 查询设备状态列表
     *
     * @param tDeviceInfoModificationHistory 设备状态
     * @return 设备状态
     */
    @Override
    public List<TDeviceInfoModificationHistory> selectTDeviceInfoModificationHistoryList(TDeviceInfoModificationHistory tDeviceInfoModificationHistory, LocalDateTime startTime, LocalDateTime endTime)
    {
        return tDeviceInfoModificationHistoryMapper.selectTDeviceInfoModificationHistoryList(tDeviceInfoModificationHistory, startTime, endTime);
    }

    /**
     * 新增设备状态
     *
     * @param tDeviceInfoModificationHistory 设备状态
     * @return 结果
     */
    @Override
    public int insertTDeviceInfoModificationHistory(TDeviceInfoModificationHistory tDeviceInfoModificationHistory)
    {
        return tDeviceInfoModificationHistoryMapper.insertTDeviceInfoModificationHistory(tDeviceInfoModificationHistory);
    }

    /**
     * 修改设备状态
     *
     * @param tDeviceInfoModificationHistory 设备状态
     * @return 结果
     */
    @Override
    public int updateTDeviceInfoModificationHistory(TDeviceInfoModificationHistory tDeviceInfoModificationHistory)
    {
        return tDeviceInfoModificationHistoryMapper.updateTDeviceInfoModificationHistory(tDeviceInfoModificationHistory);
    }

    /**
     * 批量删除设备状态
     *
     * @param ids 需要删除的设备状态主键
     * @return 结果
     */
    @Override
    public int deleteTDeviceInfoModificationHistoryByIds(Integer[] ids)
    {
        return tDeviceInfoModificationHistoryMapper.deleteTDeviceInfoModificationHistoryByIds(ids);
    }

    /**
     * 删除设备状态信息
     *
     * @param id 设备状态主键
     * @return 结果
     */
    @Override
    public int deleteTDeviceInfoModificationHistoryById(Integer id)
    {
        return tDeviceInfoModificationHistoryMapper.deleteTDeviceInfoModificationHistoryById(id);
    }
}
